package com.tk.method;

public class Demo03 {
    public static void main(String[] args) {
        int MAX = max(20, 30);
        System.out.println(MAX); //30
    }

    // 比大小
    public static int max(int num1, int num2) {
        int result;

        if (num1 == num2) {
            System.out.println("num1==num2");
        }

        if (num1 > num2) {
            result = num1;
        } else {
            result = num2;
        }
        return result;
    }
}
